package com.f37.f37ex01.util;


import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class AppListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        ServletContext app = sce.getServletContext();
        app.setAttribute("h","http://localhost:9090/beautify/head/");
        app.setAttribute("s","http://localhost:9090/beautify/software/");
        app.setAttribute("d","http://localhost:9090/beautify/doc/");
        app.setAttribute("t","http://localhost:9090/beautify/thumbnail/");
        app.setAttribute("locale","zh_CN");

    }
}
